package com.bleeth.flow.web.model;

import lombok.Data;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.fun.DataProxy;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.annotation.sub_field.sub_edit.Search;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author ：Bleeth
 * @date ：2022-05-16
 * @description：兴业数据管理模型
 */

@Erupt(name = "Flow数据源管理",
        dataProxy = FlowSourceModel.class
)
@Entity
@Table(name = "flow_info")
@Data
public class FlowSourceModel extends FlowBaseModel implements DataProxy<FlowSourceModel> {

    @EruptField(
            views = @View(title = "Flow名称"),
            edit = @Edit(title = "Flow名称",search = @Search(vague = true))
    )
    private String flowName;


    @EruptField(
            views = @View(title = "FlowUid", sortable = true),
            edit = @Edit(title = "FlowUid",search = @Search(vague = true))
    )
    private String flowUid;

    @EruptField(
            views = @View(title = "项目名称", sortable = true),
            edit = @Edit(title = "项目名称",search = @Search(vague = true))
    )
    private String projectName;

    @EruptField(
            views = @View(title = "flow内容", sortable = true),
            edit = @Edit(title = "flow内容",search = @Search(vague = true))
    )
    private String flowContent;

}
